package com.shanzmoo.db.sys.entity.vo;

import com.alibaba.fastjson.JSON;
import com.shanzmoo.db.sys.entity.OutletInfoEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 门店选择对象
 *
 * @author Gzhao 2020/12/30
 */
@Data
@ApiModel("门店选择对象")
public class OutletInfoSelectVo {

    @ApiModelProperty("门店ID")
    private Integer id;

    @ApiModelProperty("门店名称")
    private String name;

    public static OutletInfoSelectVo create(OutletInfoEntity infoEntity) {
        return JSON.parseObject(JSON.toJSONString(infoEntity), OutletInfoSelectVo.class);
    }
}
